package com.sa.oauth.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DocConfig {

    /**
     * http://192.168.4.32:9195/auth-service/swagger-ui/index.html
     * @return
     */
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("系统API文档")
                        .version("1.0.0")
                        .description("系统所有接口的详细说明和使用指南")
                        .contact(new Contact()
                                .name("开发团队")
                                .email("")));
    }
}
